home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Random2.0 / Source / DieRoller.h next >
Text File  |  1995-06-12  |  478b  |  31 lines

  1. //
  2. // DieRoller
  3. //
  4. // Copyright (C) 1992 Contemporary Design Studios. All rights reserved.
  5. //
  6.  
  7.  
  8. #import "Random.h"
  9.  
  10.  
  11. @interface DieRoller : Random
  12.  
  13.  
  14. {
  15. }
  16.  
  17.  
  18. - (int)rollDie:(int)numSides;        // Return a random integer 1 <= x <= numSides.
  19. - (int)roll:(int)numRolls        // Return the best numWanted of numRolls rolls.
  20.   die:(int)numSides;
  21. - (int)rollBest:(int)numWanted        // Return integer sum of best numWanted rolls.
  22.   of:(int)numRolls
  23.   die:(int)numSides;
  24.  
  25.  
  26. @end
  27.  
  28.  
  29. //
  30. // End of file.
  31. //